package com.itheima;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller()
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/test01")
    public String test01(Integer a) {
        System.out.println("test01");
        System.out.println(a);

        return "index1";
    }
    @RequestMapping("/test02")
    public String test02(String username,String password) {
        System.out.println("test02");
        System.out.println(username+""+password);

        return "index1";
    }
    @RequestMapping("/test03")
    public String test03(User user) {
        System.out.println("test03");
        System.out.println(user);

        return "index1";
    }
    @RequestMapping("/test04")
    public String test04(User1 user) {
        System.out.println("test04");
        System.out.println(user.getAge());
        System.out.println(user);

        return "index1";
    }

}
